package cn.edu.sjtu.se.dslab.service;

import java.util.List;

import cn.edu.sjtu.se.dslab.action.bean.PageBean;
import cn.edu.sjtu.se.dslab.component.data.DomainEntity;
import cn.edu.sjtu.se.dslab.exception.DBException;

public interface IDomainEntityService {
	
	public boolean addDomainEntity(DomainEntity entity);

	public DomainEntity getDomainEntityById(long id);

	public DomainEntity getDomainEntityByUri(String uri);
	
	public List<DomainEntity>  getAllDomainEntity();
	
	public List<DomainEntity>  getDomainEntityByText(String text);
	
	public DomainEntity  getDomainEntityByName(String text);

	public boolean updateDomainEntity(DomainEntity entity);

	public PageBean<DomainEntity> getPageBean(int pageNo) throws DBException;
	public PageBean<DomainEntity> getDataEntityPageBean(int pageNo) throws DBException;
}
